package com.example.service.impl;

import com.example.entity.po.Notification;
import com.example.mapper.NotificationMapper;
import com.example.service.NotificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NotificationServiceImpl implements NotificationService {
    @Autowired
    private NotificationMapper notificationMapper;

    @Override
    public List<Notification> queryNotification() {
        return notificationMapper.queryNotification();
    }

    @Override
    public int addNotification(Notification notification) {
        return notificationMapper.addNotification(notification);
    }

    @Override
    public int deleteNotification(int id) {
        return notificationMapper.deleteNotification(id);
    }

    @Override
    public List<Notification> fuzzyNotification(String noticeTitle) {
        return notificationMapper.fuzzyNotification(noticeTitle);
    }

}
